From: Jasper St. Pierre Date: Wed, 20 Feb 2013 01:27:11 +0000 (-0500) Subject: panel: Don't try to begin a grab op while something else has taken a grab X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4698 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3db253998b18b13cf84f637d148f642c5d379a3f;p=gnome-shell.git panel: Don't try to begin a grab op while something else has taken a grab https://bugzilla.gnome.org/show_bug.cgi?id=694241 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 7153abdff..f24f3a402 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -1065,6 +1065,9 @@ const Panel = new Lang.Class({ }, _onButtonPress: function(actor, event) { + if (Main.modalCount > 0) + return false; + if (event.get_source() != actor) return false;